import request from '@/utils/request'


/* 获取列表 */
export function getPolicyList(query) {

	return request({
		url: '/website/academyLibrary/list',
		method: 'get',
		params: query
	})
}

/* 获取推荐列表 */
export function getPolicyReList() {
	const query = {
		pageSize: 10,
		pageNum: 1,
		isRecommend: 1
	}
	return request({
		url: '/website/academyLibrary/list',
		method: 'get',
		params: query
	})
}

/* 获取详情 */
export function getPolicyManagement(managementId) {
	return request({
		url: '/website/academyLibrary/getPolicyManagement',
		method: 'get',
		params: {
			managementId: managementId
		}
	})
}
/* 获取筛选类别列表 */
export function getPolicyType(data) {
	return request({
		url: '/policyInfo/getPolicyTypeMap',
		method: 'post',
		data: data
	})
}


